<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="h" uri="/head" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<h:head title="注册"></h:head>
<link type="text/css" rel="stylesheet" href="/style/register.css" />
<link type="text/css" rel="stylesheet" href="/style/base.css" />
<script type="text/javascript">
$(function(){

	$("#regBtn").click(function(){
		var checkedType = $("input[name='type']:checked");
		var typeLen = checkedType.length;
		var email = $.trim($("#email").val());
		var password =  $.trim($("#password").val());
		var userName =  $.trim($("#userName").val());
		var mobilePhone =  $.trim($("#mobilePhone").val());
		var qq = $.trim($("#qq").val());
		
		if(typeLen==0) {
			$("#typeErr").html("请选择用户类型");
			return;
		}
		alert(checkedType.val())
		$("#userType").val(checkedType.val());
		$("#typeErr").html("");
		
		if(!email) {
			$("#emailErr").html("请填写Email");
			return;
		}
		$("#emailErr").html("");
		if(!isEmail(email)) {
			$("#emailErr").html("Email填写错误");
			return;
		}
		$("#emailErr").html("");
		
		if(!password) {
			$("#pwdErr").html("请填写注册密码（6-20位）!");
			return;
		}
		$("#pwdErr").html("");
		
		if(!userName) {
			$("#userNameErr").html("请填写姓名");
			return;
		}
		$("#userNameErr").html("");
		
		if(!mobilePhone) {
			$("#mobileErr").html("请填写手机号码");
			return;
		}
		$("#mobileErr").html("");
		if(!qq) {
			$("#qqErr").html("请填写QQ号码");
			return;
		}
		$("#qqErr").html("");
		$("#regForm").submit();
	});
	
});
</script>
</head>

<body>
<!-- 头部 S -->
<div class="head_top">
    <p class="f12"><span class="fr"><a href="#" target="_blank" >登录</a>|<a href="#" target="_blank" >注册</a>|<a href="#" target="_blank" >免费发布信息</a></span></p>
</div>
<div class="head_mid">
    <span class="logo fl"><img src="/images/logo.gif" width="188" height="64" /></span>
    <span class="search fr">
        <input class="s_input fl" name="" type="text" value="请输入关键字" />
        <input class="s_button fl" name="" type="button" />
        <a class="publish fl" href="#" target="_blank"><img src="/images/publish_but.gif" width="132" height="31" /></a>
     </span>   
</div>
<div class="banner">
    <div class="banner_con ">
    	<p class="nav fl ml40">	<a href="#">首  页</a><span></span><a href="#">个人挂证</a><span></span><a href="#">企业聘证书</a><span></span><a href="#">企业聘证书</a><span></span><a href="#">简历库</a><span></span><a href="#">行业资讯</a></p>
           <p class="phone fr f14 fb mr10">服务热线：12365847562</p>
     </div>
</div>
<!-- 头部 E -->
<!-- 注册 S -->
<div class="register">
	<span class="reg_top"></span>
    <div class="reg_mid">
    	<span class="reg_tit"><h1 class="fl">用户注册</h1><span class="fr mr10 mt15">提示:请填写真实有效的信息,以便于您办理业务</span></span>
        <div class="reg_detail">
        <form id="regForm" action="/register.shtml" method="post">
            <fieldset>
                <legend>注册表单</legend>
                <input type="" id="userType" name="user.userType" value="0"/>
                 <p class="reg_form"><span class="reg_name"><i>*</i><label for="type">用户类型：</label></span><span class="reg_input"><input name="type" type="radio" value="" />个人<input name="type" type="radio" value="1" />公司</span><span class="tishi" id="typeErr"></span></p>
                  <p class="reg_form"><span class="reg_name"><i>*</i><label for="email">Email：</label></span><span class="reg_input"><input class="reg_text" id="email" name="user.email" type="text" /></span><span class="tishi" id="emailErr"></span></p>
                   <p class="reg_form"><span class="reg_name"><i>*</i><label for="password">密 码：</label></span><span class="reg_input"><input class="reg_text" id="password" name="user.password" type="text" /></span><span class="tishi" id="pwdErr"></span></p>
                    <p class="reg_form"><span class="reg_name"><i>*</i><label for="userName">姓 名：</label></span><span class="reg_input"><input class="reg_text" id="userName" name="user.userName" type="text" /></span><span class="tishi" id="userNameErr"></span></p>
                     <p class="reg_form"><span class="reg_name"><i>*</i><label for="mobilePhone">手机号：</label></span><span class="reg_input"><input class="reg_text" id="mobilePhone" name="user.mobilePhone" type="text" /></span><span class="tishi_phone" id="mobileErr">发布信息需要手机验证，请勿使用虚假号码注册！ </span></p>
                      <p class="reg_form"><span class="reg_name"><i>*</i><label for="qq">QQ号码：</label></span><span class="reg_input"><input class="reg_text" id="qq" name="user.qq" type="text" /></span><span class="tishi" id="qqErr"></span></p>
                       <p class="reg_form"><span class="reg_name"></span><span class="reg_input"><input class="reg_radio" name="" type="radio" value="" />同意</span><span class="tishi"><a href="#" target="_blank">查看注册条款</a></span></p>
                       <p class="reg_form_1"><input class="reg_button" id="regBtn" type="button" /></p>
             </fieldset>
          </form>
        </div>
    </div>
    <span class="reg_bot"></span>
</div>
<!-- 注册  E -->
<!-- 友情链接 S -->
<div class="link">
	<h2>友情链接</h2>
    <ul>
    	<li><a href="#" target="_blank">中国建造师考试网</a></li>
        <li><a href="#" target="_blank">中国建造师考试网</a></li>
        <li><a href="#" target="_blank">中国建造师考试网</a></li>
        <li><a href="#" target="_blank">中国建造师考试网</a></li>
        <li><a href="#" target="_blank">中国建造师考试网</a></li>
        <li><a href="#" target="_blank">中国建造师考试网</a></li>
        <li><a href="#" target="_blank">中国建造师考试网</a></li>
        <li><a href="#" target="_blank">中国建造师考试网</a></li>
        <li><a href="#" target="_blank">中国建造师考试网</a></li>
    </ul>	
</div>
<!-- 友情链接 E -->
<!-- 底部 S -->
<div class="foot mt15">
	<div class="foot_detail">
    	<ul>
        	<li><a href="#" target="_blank">关于我们</a><span>|</span></li>
            <li><a href="#" target="_blank">免责声明 </a><span>|</span></li>
            <li><a href="#" target="_blank">广告与合作</a><span>|</span></li>
            <li><a href="#" target="_blank">置顶服务</a><span>|</span></li>
            <li><a href="#" target="_blank">申请友情链接</a></li>
        </ul>
        <p class="foot_text">本站是一个建筑企业与人才交流的中立平台，用户发布的招聘求职信息与本站无关！</p>
        <p class="foot_text mt10">业务咨询：15899663268；置顶咨询：0755-57410788；网站用户遇到困难请咨询QQ：46799598</p>
    </div>
</div>
<!-- 底部 E -->
</body>
</html>
